package com.mjh.mapper;

import com.mjh.annotaion.DataScope;
import com.mjh.bean.User;
import com.mjh.model.BaseQuery;
import com.mjh.vo.PieData;
import com.mjh.vo.UserDetailInfoVo;
import com.mjh.vo.UserVo;

import java.util.List;

/**
* @author ma
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2025-02-18 15:20:11
* @Entity com.mjh.bean.UserDetailsServiceImpl
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByActName(String username);

    UserDetailInfoVo selectByIdUserVo(Integer loginUserId);

    @DataScope(tableAlias = "tu", tableField = "id")
    List<User> selectList(BaseQuery baseQuery);

    int deleteUserBatchByIds(List<Integer> ids);

    List<User> selectListAll();

    List<UserVo> selectAllRole();

    UserVo selectUserVoRoleById(Integer id);

    List<PieData> queryUserAct();
}
